package acs.udp;

import java.net.InetSocketAddress;

public class LogEvent {
	public static final byte SEPARATOR = (byte) ':';
	private final InetSocketAddress source;
	private final String logfile;//所发送的 LogEvent的日志文件的名称
	private final String msg;//消息内容
	private final long received;//接收 LogEvent的时间

	public LogEvent(String logfile, String msg) {
		this(null, -1, logfile, msg);
	}

	public LogEvent(InetSocketAddress source, long received, String logfile, String msg) {
		this.source = source;
		this.logfile = logfile;
		this.msg = msg;
		this.received = received;
	}

	public InetSocketAddress getSource() {
		return source;
	}

	public String getLogfile() {
		return logfile;
	}

	public String getMsg() {
		return msg;
	}

	public long getReceived() {
		return received;
	}
	
	
}
